﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ServiceDesk.DAL;
using ServiceDesk.Model;
using log4net;
using log4net.Config;

namespace CreateDB
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Creates the service desk database...");
            XmlConfigurator.Configure();// log4net
            var sf = new ServiceDeskSessionFactory();
            sf.CreateDb(ServiceDeskSessionFactory.ConnectionString);
            var testModel = new SessionModel(sf.SessionFactory);
            testModel.TestInit();
            Console.WriteLine("Data base is created");
            Console.WriteLine("Press enter");
            Console.ReadLine();
        }
    }
}
